﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <form action="/Test/Index" method="post">
            <h1>测试传值</h1>
            <p>姓名：<input type="text" name="uname" value="" /></p>
            <p>年龄：<input type="text" name="uage" value="" /></p>
            <p><input type="submit" value="提交" /></p>
        </form>
        <hr />
        <h1>姓名：@ViewBag.uname</h1>
        <h1>年龄：@ViewBag.uage</h1>
    </div>
</body>
</html>
